<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String contexts = request.getContextPath();
    pageContext.setAttribute("ctx", contexts);
%>
<html>

<link type="text/css" rel="stylesheet" href="${ctx}/css/login/blogData/addBlogData.css">
<link rel="stylesheet" href="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script type="text/javascript" src="${ctx}/js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="${ctx}/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${ctx}/js/login/blogData/addBlogData.js"></script>
<body>
<div id="returnList">
    <div id="div_addBlogData">
        <div align="center"><h2>添加用户资料</h2></div>

        <s:form class="form-horizontal" id="addBlogData" action="addBlogData" role="form" namespace="/" method="POST" enctype="multipart/form-data">
            <div class="form-group" id="div_blogName">
                <label for="inputBlogName" class="col-sm-2 control-label">博客名 :</label>

                <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputBlogName" name="blogDataVO.blogName"
                           placeholder="请输入你的博客用名...">
                </div>
            </div>


            <div class="form-group" id="div_blogImg">
                <label for="inputBlogImg" class="col-sm-2 control-label">博客头像 :</label>

                <div class="col-sm-10">
                    <input type="hidden" id="inputBlogImg" name="blogDataVO.blogImage">
                    <input type="hidden" name="imgFileType" >
                    <input type="file" name="imgFile" id="imgFile" >
                </div>
            </div>

            <div class="form-group" id="div_notice">
                <label for="inputNotice" class="col-sm-2 control-label">声明 :</label>

                <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputNotice" name="blogDataVO.notice"
                           placeholder="请编辑你的页面声明...">
                </div>

            </div>

            <div class="form-group" id="div_notice">
                <label for="inputBlogSign" class="col-sm-2 control-label">个性签名 :</label>

                <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputBlogSign" name="blogDataVO.blogSign"
                           placeholder="请编辑你的个性签名...">
                </div>

            </div>

            <div class="form-group" id="div_submit">
                <div class="col-sm-offset-2 col-sm-10">
                    <button id="div_submit_val" type="button" class="btn btn-default" onclick="addBlogDataSubmit()">确定
                    </button>
                </div>
            </div>
        </s:form>
    </div>
</div>
</body>
</html>